﻿package mortal.game.scene3D.map3D.sceneInfo
{

    public class SceneLimitInfo extends Object
    {
        private var _limitValue:int = 0;

        public function SceneLimitInfo()
        {
            return;
        }// end function

        public function get limitValue() : int
        {
            return this._limitValue;
        }// end function

        public function set limitValue(param1:int) : void
        {
            this._limitValue = param1;
            return;
        }// end function

        public function canSave() : Boolean
        {
            return (this._limitValue & 1) != 1;
        }// end function

        public function canSinglePK() : Boolean
        {
            return (this._limitValue & 2) != 2;
        }// end function

        public function canTeamPK() : Boolean
        {
            return (this._limitValue & 4) != 4;
        }// end function

        public function canPassTo() : Boolean
        {
            return (this._limitValue & 8) != 8;
        }// end function

        public function canSingleMount() : Boolean
        {
            return (this._limitValue & 16) != 16;
        }// end function

        public function canUsePet() : Boolean
        {
            return (this._limitValue & 32) != 32;
        }// end function

        public function canBianShen() : Boolean
        {
            return (this._limitValue & 64) != 64;
        }// end function

        public function canBattle() : Boolean
        {
            return (this._limitValue & 128) != 128;
        }// end function

        public function canFly() : Boolean
        {
            return (this._limitValue & 256) != 256;
        }// end function

        public function canSomersault() : Boolean
        {
            return (this._limitValue & 512) != 512;
        }// end function

        public function canZazen() : Boolean
        {
            return (this._limitValue & 1024) != 1024;
        }// end function

    }
}
